from django.db import models
from django.db.models.fields.related import ForeignKey
from python_residencia_rise.residenteApp.models import Residente
# Create your models here.

class Formulario(models.Model):
    
    dataInsercao = models.DateTimeField(blank = False)
    atividades = models.TextField(blank = False , max_length = 500)
    bibliografia = models.TextField(blank = False , max_length = 500)
    outrasInformacoes = models.TextField(blank = False , max_length = 500)
    residente = ForeignKey(Residente)
    
    def __unicode__(self):
        return self.residente.nome